package com.net.xpay.core.constant;

public class WebConstant {
    //路径,RolePat(控制访问权限的)
    public static final String COMMON = "/common";

    //路径,RolePat(控制访问权限的)
    public static final String OPEN = "/open";

    //商户
    public static final String MERCHANT = "/merchant";


    //Cookie相关的属性
    public static final String SESSION_COOKIE_NAME = "xpay-muc"; //spring session的cookie name

    public static final String NICK_COOKIE_NAME = "user-nick"; //用户nick给放到cookie去

    public static final String REMEMBER_ME_COOKIE_NAME = "xpay-rmc"; //remember me 使用的cookie

    public static final int SESSION_COOKIE_MAX_AGE = 24 * 60 * 60; //Session的有效期

    public static final int REMEMBER_ME_COOKIE_MAX_AGE = 60 * 60; //remember me

    public static final String REQUEST_USER_ATTR = "session-user";

    //链接相关的:
    public static final String LOGOUT_URL = "/common/logout"; //注销的链接

    public static final String LOGIN_URL = "/common/login/form"; //登陆链接

    //开发设置
    public static final int DEV_TOKEN_EXPIRED_SECONDS = 1800;//30分钟

    public static final String DEV_TOKEN_PAYLOAD_KEY = "userId";

}
